package com.ls.blog.vo;
import com.ls.blog.common.valid.ReqId;
import com.ls.blog.common.valid.Select;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;


@Data
public class PageVO {

    /**
     * 分类id
     */
    @NotNull(message = "需要ID",groups = {ReqId.class})
    private Long cid;

    /**
     * 当前页
     */
    @NotNull(message = "分页查询当前页不能为空",groups = {Select.class})
    private  Long current;

    /**
     * 每页尺寸
     */
    @NotNull(message = "分页查询每页不能为空",groups = {Select.class})
    private  Integer pageSize;


    private List<Integer> ids;


    /**
     * 关键字
     */
    private  String keyWord;
}
